home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / topinfix.tip < prev    next >
Text File  |  1993-09-15  |  1KB  |  41 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 35.5.2, p. IV-110.
  16. % Original source in file "o2.TEX", starting line 1246.
  17. \wlog{L: "topinfix.tip" ["o2.TEX," l. 1246, p. IV-110]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{mspaces.tip}
  20. \InputD{op-endin.tip}
  21. \InputD{maxmindi.tip}
  22. \catcode`\@ = 11
  23. \def\EndInsertTopInsFix{% 
  24.     \ifdim\dp0 > 10pt
  25.         \wlog{\string\endinsert: \string\topinsert
  26.             material deeper than 10pt}%
  27.         \dp0 = 10pt
  28.     \fi
  29.     \MaxDimen{\dimen0}{\dp0}{0pt}{}
  30.     \dimen1 = \vsize
  31.     \advance\dimen1 by -\dimen0
  32.     \advance\dimen1 by -12pt
  33.     \ifdim\ht0 > \dimen1
  34.         \wlog{\string\endinsert: \noexpand\topinsert
  35.             material too long (\the\ht0),}%
  36.         \wlog{\EightSpaces shortened to \the\dimen1.}%
  37.         \ht0 = \dimen1
  38.     \fi
  39. }
  40. \catcode`\@ = 12
  41.